#ifndef HPLC_ZKYS_PARSECOMMONSYSTEMPACKET_H
#define HPLC_ZKYS_PARSECOMMONSYSTEMPACKET_H

#include <QObject>
#include "modulehplcdefine.h"

namespace hplc
{
namespace zkys
{

class HplcZkysProtocolCommonData;
class HplcZkysParseCommonSystemPacket : public QObject
{
    Q_OBJECT

public:
    HplcZkysParseCommonSystemPacket(HplcZkysProtocolCommonData &data, hplc::CommonParam &param, QObject *parent = nullptr);

    void parseSet(quint8 pfc, char *data, int len);
    void parseGet(quint8 pfc, char *data, int len);

signals:
    void parseCompleted(int id, const QVariant &data);

    void setModel(quint8 model);

protected:
    HplcZkysProtocolCommonData  *m_d = nullptr;
    hplc::CommonParam   *m_param = nullptr;
};

} // zkys
} // hplc

#endif // HPLC_ZKYS_PARSECOMMONSYSTEMPACKET_H
